package com.tuoyu.peopletest.view.custom;

import android.annotation.SuppressLint;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.TextView;


import com.tuoyu.peopletest.utils.SCUIUtils;

import androidx.annotation.Nullable;

/**
 * 使用iconfont
 */
@SuppressLint("AppCompatCustomView")
public class IconTextView extends TextView {

    public IconTextView(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
//        Typeface iconfont = Typeface.createFromAsset(context.getAssets(), "iconfont.ttf");
//        setTypeface(iconfont);

        setTypeface(SCUIUtils.getIconTypeface());
    }
}
